import hanlp

# 加载模型
# hanlp_model= hanlp.load("LARGE_ALBERT_BASE")
hanlp_model = hanlp.load(hanlp.pretrained.ner.MSRA_NER_ALBERT_BASE_ZH)
text ="我喜欢北京天安门广场"
# worlds=hanlp_model(text)
#
# print("分词结果：",worlds)

ner_results=hanlp_model(text)
print("命名实体识别结果：",ner_results)

